package cool.mor.entity;

import cool.mor.entity.key.RoleFunctionKey;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Ivan
 */
@Data
@Entity
@Table(name = "role_function")
@IdClass(RoleFunctionKey.class)
public class RoleFunction implements Serializable {
    @Id
    @Column(name = "role_id")
    private String roleId;
    @Id
    @Column(name = "function_id")
    private String functionId;

}